#coding:utf-8
players = ['charles', 'martina', 'michae', 'florence', 'eli']
print("The first three items in the list are:")
for player in players[ :3]:
    print(player)

# players = ['charles', 'martina', 'michae', 'florence', 'eli']
print("\nThree items from the middle of the list are:")
for player in players[1:4]:
    print(player)

print("\nThe last tree items in the list are:")
for player in players[2:]:
    print(player)

#你的披萨和我的披萨
pizzas = ['xiangde', 'tiande', 'lade']
friend_pizzas = pizzas[:]
print(friend_pizzas)

pizzas.append('beef')
print(pizzas)

friend_pizzas.append('egg')
print(friend_pizzas)

print("\nMy favorite pizzas are:")
for pizza in pizzas:
    print(pizza)

print("\nMy friend's favorite pizzas are:")
for friend_pizza in friend_pizzas:
    print(friend_pizza)

#foods.py
print("\nmy_food for : ")
my_foods = ['pizza', 'falafel', 'carrot cake']
for my_food in my_foods:
    print( my_food)

print("\nMyFriend foods for : ")
MyFriend_foods = ['beef', 'egg', 'nudool']
for MyFriend_food in MyFriend_foods:
    print(MyFriend_food)